package com.market.service;

import com.market.Dto.EmployeeLoginDto;
import com.market.Dto.EmployeeQueryDto;
import com.market.Dto.EmployeeSaveDto;
import com.market.Vo.EmployeeQueryVo;
import com.market.entity.Employee;
import org.springframework.stereotype.Service;


public interface EmployeeService {
    /**
     * 登录
     * @param employeeLoginDto
     * @return
     */
    public Employee login(EmployeeLoginDto employeeLoginDto);

    /**
     * 员工分页查询
     * @param employeeeQueryDto
     * @return
     */
    EmployeeQueryVo list(EmployeeQueryDto employeeeQueryDto);

    /**
     * 获取员工详情
     * @param id
     * @return
     */
    Employee getById(Long id);

    /**
     * 新增员工
     * @param employeeSaveDto
     */

    void  saveEmployee(EmployeeSaveDto employeeSaveDto);

    /**
     * 删除员工
     * @param id
     */
    void deleteEmployee(Long id);

    /**
     * 修改员工
     * @param employeeSaveDto
     */
    void updateEmployee(EmployeeSaveDto employeeSaveDto);
}
